package com.jkoss.wine.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 系统设置
 * 
 * @Author Jason
 * @Version 1.0, 2018-09-25
 * @See
 * @Since com.jkoss.mengal.system.entity
 * @Description: TODO
 */
@TableName("system_setting")
public class SystemSetting extends Model<SystemSetting> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 键
     */
    @TableField("ky")
    private String ky;
    /**
     * 值
     */
    @TableField("val")
    private String val;
    /**
     * 类型
     */
    @TableField("type")
    private String type;
    /**
     * 备注
     */
    @TableField("remk")
    private String remk;
    /**
     * 当操作人为null时，表示自动录入
     */
    @TableField("operator")
    private String operator;
    /**
     * 添加时间
     */
    @TableField("add_time")
    //@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    /**
     * 是否删除：0-未删除、1-已删除、2-不能删除
     */
    @TableField("del")
    private Integer del;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKy() {
        return ky;
    }

    public void setKy(String ky) {
        this.ky = ky;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemk() {
        return remk;
    }

    public void setRemk(String remk) {
        this.remk = remk;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SystemSetting{" +
        ", id=" + id +
        ", ky=" + ky +
        ", val=" + val +
        ", type=" + type +
        ", remk=" + remk +
        ", operator=" + operator +
        ", addTime=" + addTime +
        ", del=" + del +
        "}";
    }
}
